//
//  KeepCallCollectionCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/22.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "KeepCallCollectionCell.h"

@interface KeepCallCollectionCell ()

@property (weak, nonatomic) IBOutlet UILabel *topLabel;
@end

@implementation KeepCallCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.topLabel.font = MYFONT(15);
    
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.topLabel.layer.borderColor = lineGray.CGColor;
    
    self.topLabel.layer.borderWidth = 0.6;
    // Initialization code
}

- (void)setSubModel:(GoodsSpecSubModel *)subModel{
    _subModel = subModel;


    self.topLabel.text = _subModel.spec_value_name;
    
    if ([_subModel.isSelect isEqualToString:@"1"]) {
        
        self.topLabel.layer.borderColor = [UIColor orangeColor].CGColor;
        self.topLabel.textColor = [UIColor orangeColor];
        
    } else {
        
        self.topLabel.layer.borderColor = lineGray.CGColor;
        self.topLabel.textColor = [UIColor blackColor];
        
        
    }




}









@end
